// Snake.h: interface for the CSnake class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SNAKE_H__A5722E9C_60B7_44AD_B446_7A042B871FCD__INCLUDED_)
#define AFX_SNAKE_H__A5722E9C_60B7_44AD_B446_7A042B871FCD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef enum 
{
	LEFT, RIGHT, TOP, BOTTOM
}DIRECTION;


class CSnake  
{
public:
	CSnake();
	CSnake(int count);
	virtual ~CSnake();

public:
	void Move();
	bool IsOver();
	void SetHead(CPoint &point);
	CPoint& GetHead();
	void Draw(CDC *pDC);
	void SetWay(DIRECTION dir);
	DIRECTION GetWay();
	void EatFood();

private:
	DIRECTION way;
	CPoint	  head;
	CPtrList  list;

};

#endif // !defined(AFX_SNAKE_H__A5722E9C_60B7_44AD_B446_7A042B871FCD__INCLUDED_)
